package com.catsic.mod.service;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.catsic.base.BaseService;
import com.catsic.mod.condition.AnnouncesCondition;
import com.catsic.mod.entity.Announces;
import com.catsic.mod.form.AnnouncesForm;

/**
 * 
 * @author 小斌
 * AnnouncesService接口
 */
public interface AnnouncesService extends BaseService<Announces,String>{
      
	
	/**
	 * @param AnnouncesForm
	 * @return AnnouncesForm
	 * 添加
	 */
	public AnnouncesForm add(AnnouncesForm form,String[] organIds);
	
	
	/**
	 * @param id
	 * @return Announces
	 * 通过id查Announces
	 */
	public Announces findById(String id);
	
//	/**
//	 * @param id
//	 * 
//	 * 通过id删除Announces
//	 */
//	
//	public void delete(String id);
	
	/**
	 * @param id
	 * @return Announces
	 * 通过id查AnnouncesForm
	 */

	
	public AnnouncesForm findAnnouncesById(String id);
	
	/**
	 * @param AnnouncesCondition Pageable
	 * @return Page
	 * 查询所有的AnnouncesForm
	 */
	public Page<AnnouncesForm> findAll(AnnouncesCondition condition,Pageable pageable);
}
